<html>
  签到
  <script>
    //const $ = new Env('助学-签到')
    console.log("111");

    var xmlHttp = new XMLHttpRequest();
    xmlHttp.open(
      "POST",
      "http://quanyi.hxjx360.com/api/login2?username=11&password=password_CODE_PW_OPENID_11_CODE_PW_OPENID_undefined"
    );
    xmlHttp.setRequestHeader("content-type", "application/json");
    xmlHttp.setRequestHeader("token", "701558c38f34c3e08e0ab305c84ecy0b");
    let obj = {
      content: JSON.stringify({}),
      prjId: localStorage.getItem("prjId"),
      creator: localStorage.getItem("creator"),
      configName: name.split(".")[0],
    };
    var stringData = JSON.stringify(obj);
    xmlHttp.send(stringData);
    xmlHttp.onreadystatechange = function () {
      //complete
      if (xmlHttp.readyState == 4 && xmlHttp.status == 200) {
        mxUtils.confirm(mxResources.get("saveSuccess"), true);
      } else {
        //请求失败的回调函数
        console.log("保存失败");
      }
    };
  </script>
</html>
